package Operation;

import Operation.*;
import User.*;

import java.util.ArrayList;
import java.util.Scanner;

public class test2 {
    public static void main(String[] a){
        Scanner sc =new Scanner(System.in);
        String x1;
        String x2;
        String x3;
                x1=sc.next();
                x2=sc.next();
                x3=sc.next();
        ArrayList<user>w= new ArrayList<>();
        jdbc bd=new jdbc("jdbc:mysql://rm-2ze4l9h346r9853u8jo.mysql.rds.aliyuncs.com :3306/fmms","root","@FMMS201");
       Regist f =new Regist();
       f.regist(x1,x2,x3,x3,w,bd);
        ArrayList<administrators> administrators_array = new ArrayList<>();
        ArrayList<commonuser> users_array = new ArrayList<>();
        jdbc bc=new jdbc("jdbc:mysql://rm-2ze4l9h346r9853u8jo.mysql.rds.aliyuncs.com :3306/fmms","root","@FMMS201");
        administrators_array=bc.search_adminstrators_Message();
        users_array=bc.search_users_Message();
        Login l=new Login();
        x1=sc.next();
        x2=sc.next();
        l.login(x1,x2,administrators_array,users_array);
    }
}
